Skip to content

[Desktop-lite] desktop-init.sh drops entrypoint args due to heredoc variable expansion#1621

Merged
abdurriq merged 3 commits into
devcontainers:mainfrom
Mathiyarasy:dev/Mathi/desktopLite
Apr 14, 2026
Merged

[Desktop-lite] desktop-init.sh drops entrypoint args due to heredoc variable expansion#1621
abdurriq merged 3 commits into
devcontainers:mainfrom
Mathiyarasy:dev/Mathi/desktopLite

Conversation

@Mathiyarasy

@Mathiyarasy Mathiyarasy commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Fix: #1615

The desktop-lite feature's install.sh generates the entrypoint script desktop-init.sh using an unquoted heredoc (cat << EOF). At the end of this heredoc, $1 and $@ were not escaped, so they expanded to empty strings at install time. So any command passed to the container entrypoint was silently ignored.

@Mathiyarasy Mathiyarasy marked this pull request as ready for review April 14, 2026 06:41
@Mathiyarasy Mathiyarasy requested a review from a team as a code owner April 14, 2026 06:41
@Mathiyarasy Mathiyarasy changed the title [Desktop-lite] desktop-init.sh fails in the process replacement [Desktop-lite] desktop-init.sh drops entrypoint args due to heredoc variable expansion Apr 14, 2026
@abdurriq abdurriq merged commit 9f086c0 into devcontainers:main Apr 14, 2026
12 checks passed
uraitakahito added a commit to uraitakahito/features that referenced this pull request May 20, 2026
Verified by re-running test_desktop_init_exec_passthrough; upstream's
quoted form works after upstream devcontainers#1621 (desktop-init.sh heredoc fix,
9f086c0) which is now in our merge history. The earlier fork-side
simplification to "\$@" is no longer necessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[desktop-lite] Process replacement in entrypoint fails

2 participants